<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" ng-click="cancel()">&times;</button>
    <p class="modal-title panel-title-size" >资源限制</p>
</div>
<div class="modal-body panel-body">
      <p class="panel-title-size" style="    padding: 10px;    background-color: #e6ab52;    color: #fff;">修改资源会重新启动所有该组件下的实例</p>
    <form class="form-horizontal form-validation" name="addvmForm">
      <h5>CPU</h5>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="control-label">Request：</label>
                <div class="control-input">
                  <div class="col-lg-9">
                    <input type="number" name="cpuRequest" class="form-control" ng-model="addData.cpuRequest"  maxlength="64" maxlength-error-message="最多输入64个字符">

                  </div>
                  <div class="col-lg-3">
                    <select class="form-control" ng-model="$parent.cpuRequest">

                      <option  value="m">millicores</option>
                      <option  value=""> cores</option>
                    </select>
                  </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="control-label">Limit：</label>
                <div class="control-input">
                  <div class="col-lg-9">
                    <input type="number" name="cpuLimit" class="form-control"  ng-model="addData.cpuLimit" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">

                  </div>
                  <div class="col-lg-3">
                    <select class="form-control" ng-model="$parent.cpuLimit">
                      <option  value="m"> millicores</option>
                      <option  value=""> cores</option>
                    </select>
                  </div>
                </div>
            </div>
        </div>
          <h5>Memory</h5>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="control-label">Request：</label>
                <div class="control-input">
                  <div class="col-lg-9">
                    <input type="number" name="memoryRequest" class="form-control" ng-model="addData.memoryRequest"  maxlength="64" maxlength-error-message="最多输入64个字符">

                  </div>
                  <div class="col-lg-3">
                    <select class="form-control" ng-model="$parent.memoryRequest">
                <option ng-repeat="(key,item) in appResource" value="{{item.value}}"    ng-selected="item.value==$parent.memoryRequest" ng-bind="item.name"></option>
                    </select>
                  </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-12">
                <label class="control-label">Limit：</label>
                <div class="control-input">
                  <div class="col-lg-9">
                    <input type="number" name="memoryLimit" class="form-control"  placeholder="参数必须大于4M,小数点不多于2位" ng-model="addData.memoryLimit" validator="required" maxlength="64" maxlength-error-message="最多输入64个字符">

                  </div>
                  <div class="col-lg-3">
                    <select class="form-control" ng-model="$parent.memoryLimit">
                      <option ng-repeat="(key,item) in appResource" value="{{item.value}}"    ng-selected="item.value==$parent.memoryLimit" ng-bind="item.name"></option>
                        </select>
                  </div>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button type="submit" class="btn btn-info" validation-submit="addvmForm" ng-disabled="addvmForm.$invalid" ng-click="ok()">确认</button>
    <button class="btn btn-cancel" ng-click="cancel()">取消</button>
</div>
